const query = require('../utils/conn')

module.exports = (router) => {
    router.get('/yinshidetails',(req,res) => {
        let { yinshiid } = req.query;
        let get_yinshidetails = `select * from yinshi where id = ${yinshiid}`
        query(get_yinshidetails).then(result => {
            res.render('yinshidetails',{yinshidetailsData: result[0]})
        })
    })
}